﻿using Sys.Core.Dri;
using Sys.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_dri_car_Edit : System.Web.UI.Page
{
    public DriCar model { get; set; }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string id = Request.QueryString["id"];

            if (string.IsNullOrEmpty(id))
            {
                model = new DriCar();
                model.RegisterDate = DateTime.Now.ToString("yyyy-MM-dd");
                //model.Type = "Function";
                model.IsVisible = true;
            }
            else { model = CarBll.I.GetByKey(id); }
        }
    }
}